package com.htgd.gardenexpo.utils;

import com.htgd.gardenexpo.hprose.HproseService;
import hprose.common.HproseMethods;
import org.springframework.beans.factory.annotation.Autowired;

import javax.servlet.annotation.WebServlet;

/**
 * @author ：hejing
 * @date ：Created in 2021/6/15 11:23
 * @description：hprose
 * @modified By：`
 * @version: 1.0
 */
@WebServlet(urlPatterns = {"/api/v1/web/Hello"})
public class HproseServlet extends hprose.server.HproseServlet {


    @Autowired
    private HproseService hproseService;


    @Override
    protected void setGlobalMethods(HproseMethods methods){
        super.setGlobalMethods(methods);
        methods.addInstanceMethods(hproseService);
    }

}
